using System;

namespace Nice157Advices.Advices
{
    /// <summary>
    /// 7、将0值作为枚举的默认值
    /// 8、避免给枚举类型的元素提供显式的值
    /// </summary>
    public static class _7_8
    {
        /**
         * 建议从0开始,建议不自定义值
         */
        public static void Go ()
        {
            Week week = Week.Friday;
            System.Console.WriteLine ("{0} {1}", week, (int)Week.Friday);
        }
    }

    public enum Week
    {
        Monday,
        Tuesday,
        Wednesday,
        Thursday,
        Friday,
        Saturday,
        Sunday
    }
}